package com.dzjcloud.dzj.upms.biz.fegin;

import com.dzjcloud.dzj.common.core.constant.ServiceNameConstants;
import com.dzjcloud.dzj.common.core.utils.R;
import com.dzjcloud.dzj.common.fegin.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * <h3>dzj-cloud</h3>
 * <p>网关fegin</p>
 *
 * @author : DongZeJian
 * @date : 2023-04-11 12:14
 **/
@FeignClient(contextId = "gatewayFeginService",value = ServiceNameConstants.GATEWAY_SERVICE,configuration = FeignConfig.class)
public interface gatewayFeginService {

    /**
     *  刷新所有路由
     *
     * @return
     */
    @GetMapping("/refresh")
    R<String> refresh();
}
